export const privateRoutes = [
  {
    path: "/",
    redirect: "/welcome",
  },
  {
    path: "/home",
    redirect: "/welcome",
  },
];

export const publicRoutes = [
  {
    path: "/user",
    component: "@/layouts/BlankLayout",
    routes: [
      {
        path: "/user/login",
        name: "登录",
        component: "user/login",
      },
      {
        path: "/user/find",
        name: "忘记密码",
        component: "user/find",
      },
      {
        path: "/user/register",
        name: "注册",
        component: "user/register",
      },
    ],
  },
];

export default [...privateRoutes, ...publicRoutes];
